// asserts/component/element/radio/radio.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    size: {
      type: Number,
      value: 20
    },
    active: Boolean
  },

  /**
   * 组件的初始数据
   */
  data: {
  },

  /**
   * 组件的方法列表
   */
  methods: {
    click: function() {
      this.setData({
        active: !this.properties.active
      })
      this.triggerEvent("radioClick",{
        value: this.data.active
      });
    }
  },
  lifetimes: {
    attached: function() {
    }
  }
})
